﻿using System;
using RAP.Framework.Libary.Utils;
using RAP.Framework.Libary.DomTemplateBuilder.Attributes;
using RAP.Framework.Libary.DomTemplateBuilder.Handler.StringActions;

namespace RAP.Framework.Libary.DomTemplateBuilder.Element.StringActions
{
	/// <summary>
	/// 
	/// </summary>
	[TagHandler( "String.IsEndWith", typeof( StringIsEndWithHandler ) )]
    public class StringIsEndWith : StringActionConditional
    {
        public string Find
        {
            get
            {
                return this.ToString ( "Find" );
            }
        }

        public StringComparison ComparisonType
        {
            get
            {
                return this.ToEnumValue<StringComparison> ( "ComparisonType", StringComparison.CurrentCulture );
            }
        }

    }
}
